Move here, and save/restore the X error handler to allow people using GTK+
authorOwen Taylor <otaylor@redhat.com>
Thu, 17 Jan 2002 20:45:23 +0000 (20:45 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 17 Jan 2002 20:45:23 +0000 (20:45 +0000)
commitc8698f924d4b0252082eb3eea05bdc2d83480c89
tree97932d9b77bd6ce595f050d96221ab50481dd452
parent5ce4d1588a9c2b313993ef657c64a6272b53e601
Move here, and save/restore the X error handler to allow people using GTK+

Thu Jan 17 13:08:34 2002  Owen Taylor  <otaylor@redhat.com>

* gdk/x11/gdkmain-x11.c (gdk_error_trap_push): Move
here, and save/restore the X error handler to allow
people using GTK+ to set the X error handler to something
custom without disturbing the operation of GDK.

* gdk/linux-fb/gdkmain-fb.c (gdk_error_trap_push)
* gdk/win32/gdkmain-win32.c (gdk_error_trap_pop): Add
dummy implementations.

* gdk/x11/gdkmain-x11.c gdk/x11/gdkevents-x11.c
gdk/x11/gdkdnd-x11.c: Use gdk_error_trap_push()/pop()
for all error trapping.

* gdk/x11/gdkdnd-x11.c: Remove '#if 0' code.

* gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Fix
problem where we would add the results anyways,
and then add it again if no error occurred, and problem
where we could leave _gdk_error_warnings() unset.
13 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdk.c
gdk/linux-fb/gdkmain-fb.c
gdk/win32/gdkmain-win32.c
gdk/x11/gdkdnd-x11.c
gdk/x11/gdkevents-x11.c
gdk/x11/gdkmain-x11.c